/*
Copyright (C) 2016  Marien Raat

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define SCALE 50
#define SCALE_F ((float) SCALE)

#define DEG_TO_RAD 0.0174532925199433
#define RAD_TO_DEG 57.2957795130824

#define FIELD_SIZE sf::Vector2f(3000, 2000)
#define BALL_RADIUS 40

#define ROTATE_B2VEC2(vec, angle)                       \
  (b2Vec2(vec.x * cos(angle) - vec.y * sin(angle),      \
          vec.x * sin(angle) + vec.y * cos(angle)))
#define ROTATE_VECTOR2(vec, angle)                               \
  (sf::Vector2f(vec.x * cos(angle) - vec.y * sin(angle),          \
                vec.x * sin(angle) + vec.y * cos(angle)))

extern float timeStep;
extern bool client;
